home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Reference Library / Dev.CD Jun 99 RL Disk 1.toast / Technical Documentation / Develop / Additional Articles / Developing Symbiotic Apps / Symbiotic Samples / Symbiotic server source / Fractal Daemon / AUXAESuite.h next >
Encoding:
C/C++ Source or Header  |  1997-01-13  |  30.2 KB  |  1,312 lines  |  [TEXT/CWIE]

  1. /******************************************************************************
  2. **
  3. **  Project Name:    A/UX AppleEvent Suite
  4. **     File Name:    AUX-AESuite.h
  5. **
  6. **   Description:    A/UX AppleEvent Suite Definition
  7. **
  8. *******************************************************************************
  9. ** %F%  %I%
  10. *******************************************************************************
  11. **
  12. **                     Copyright (c) 1992 Apple Computer, Inc.
  13. **                       UNPUBLISHED -- ALL RIGHTS RESERVED.
  14. **
  15. **  This program is  confidential  and trade secret of  Apple Computer, Inc.
  16. **  The receipt or possession of this program does not convey any rights to
  17. **  reproduce or disclose  its  contents, or to manufacture,  use,  or sell
  18. **  anything that it may discribe, in whole or in part, without the express
  19. **  written consent of Apple Computer, Inc.
  20. **
  21. *******************************************************************************
  22. **                       A U T H O R   I D E N T I T Y
  23. *******************************************************************************
  24. **
  25. **    Initials    Name
  26. **    --------    -----------------------------------------------
  27. **    BRH            Brett R. Halle
  28. **    JSM            Scott Mulligan
  29. **      RDW                     Roger Warner
  30. **
  31. *******************************************************************************
  32. **                      R E V I S I O N   H I S T O R Y
  33. *******************************************************************************
  34. **
  35. **      Date        Time    Author    Description
  36. **    --------    -----    ------    ---------------------------------------
  37. **    06/20/92    14:24    BRH        Original implementation.
  38. **    03/01/93    14:54    JSM        Add new AE 'rcmd'
  39. **    07/29/93    10:00    JSM        Add new AEs for Discus
  40. **      10/08/93        11:00   RDW             Add new keys for replies
  41. **
  42. ******************************************************************************/
  43.  
  44. #ifndef __AUXAESuite__
  45. #define __AUXAESuite__
  46.  
  47. /*
  48. //const OSType keyAEText = 'ktxt';
  49. //const long kAEReplyModeMask = 0x0000000F;// Mask for reply mode
  50. */
  51.  
  52. /*****************
  53. //  Event Class  *
  54. //****************/
  55.  
  56. #define kAEAUXSuite 'A/UX'
  57.  
  58. /*****************
  59. //  Event Suite  *
  60. //****************/
  61.  
  62. /* * * * * * * * * * * * * *
  63. // Open process connection *
  64. // * * * * * * * * * * * * */
  65.  
  66. #define kAEOpenProcessConnection 'oppc'            /* Event ID. */
  67. /*
  68. // Parameters:
  69. */
  70. #define keyUserID 'uid '        /* User ID: typeChar. */
  71. #define keyPassword 'pswd'        /* Password: typeChar. */
  72. /*
  73. // Reply parameters:
  74. */
  75. #define keyConnectionID 'cnid'        /* Connection ID: typeLongInteger. */
  76. /*        keyErrorNumber (optional)
  77. //        keyErrorString (optional)
  78. */
  79.  
  80. /* * * * * * * * * * * * * *
  81. // Open console connection *
  82. // * * * * * * * * * * * * */
  83.  
  84. #define kAEOpenConsoleConnection 'opcc'            /* Event ID. */
  85. /*
  86. // Parameters:
  87. //
  88. //        keyUserID
  89. //        keyPassword
  90. //
  91. // Reply parameters:
  92. //
  93. //        keyConnectionID
  94. //        keyErrorNumber (optional)
  95. //        keyErrorString (optional)
  96. */
  97.  
  98. /* * * * * * * * * * * *
  99. // Open PTY connection *
  100. // * * * * * * * * * * */
  101.  
  102. #define kAEOpenPTYConnection 'optc'            /* Event ID. */
  103. /*
  104. // Parameters:
  105. //
  106. //        keyUserID
  107. //        keyPassword
  108. //
  109. // Reply parameters:
  110. //
  111. //        keyConnectionID
  112. //        keyErrorNumber (optional)
  113. //        keyErrorString (optional)
  114. */
  115.  
  116. /* * * * * * * * * * *
  117. // Close connection  *
  118. // * * * * * * * * * */
  119.  
  120. #define kAECloseConnection 'clsc'            /* Event ID. */
  121. /*
  122. // Parameters:
  123. //
  124. //        keyConnectionID
  125. //
  126. // Reply parameters:
  127. //
  128. //        keyErrorNumber (optional)
  129. //        keyErrorString (optional)
  130. */
  131.  
  132. /* * * * * * * * * * * * *
  133. // Close all connections *
  134. // * * * * * * * * * * * */
  135.  
  136. #define kAECloseAllConnections 'clsa'            /* Event ID. */
  137. /*
  138. // Parameters:
  139. //
  140. //        none
  141. //
  142. // Reply parameters:
  143. //
  144. //        keyErrorNumber (optional)
  145. //        keyErrorString (optional)
  146. */
  147.  
  148. /* * * * * * * * * * *
  149. // Send process data *
  150. // * * * * * * * * * */
  151.  
  152. #define kAESendProcessData 'data'            /* Event ID. */
  153. /*
  154. // Parameters:
  155. //
  156. //        keyConnectionID
  157. //        keyAEText
  158. //
  159. // Reply parameters:
  160. //
  161. //        keyErrorNumber (optional)
  162. //        keyErrorString (optional)
  163. */
  164.  
  165. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  166. // Acknowledge process data (asynchronous response to SendProcessData  *
  167. // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  168.  
  169. #define kAEAckProcessData 'ackd'            /* Event ID. */
  170. /*
  171. // Parameters:
  172. //
  173. //        keyConnectionID
  174. //
  175. // Reply parameters:
  176. //
  177. //        keyErrorNumber (optional)
  178. //        keyErrorString (optional)
  179. */
  180.  
  181. /* * * * * * * * *
  182. // Resize window *
  183. // * * * * * * * */
  184.  
  185. #define kAEResizeWindow 'rszw'            /* Event ID. */
  186. /*
  187. // Parameters:
  188. //
  189. //        keyConnectionID
  190. */
  191. #define keyWidthInChars 'wdch'            /* typeInteger. */
  192. #define keyHeightInChars 'htch'            /* typeInteger. */
  193. #define keyWidthInPixels 'wdpx'            /* typeInteger. */
  194. #define keyHeightInPixels 'htpx'        /* typeInteger. */
  195. /*
  196. // Reply parameters:
  197. //
  198. //        keyErrorNumber (optional)
  199. //        keyErrorString (optional)
  200. */
  201.  
  202. /* * * * * * * * * * * * * * * *
  203. // Get number of sub-processes *
  204. // * * * * * * * * * * * * * * */
  205.  
  206. #define kAEGetNumberOfSubprocesses 'gtsp'        /* Event ID. */
  207. /*
  208. // Parameters:
  209. //
  210. //        keyConnectionID
  211. //
  212. // Reply parameters:
  213. //
  214. //        keyAEResult
  215. //        keyErrorNumber (optional)
  216. //        keyErrorString (optional)
  217. */
  218.  
  219. /* * * * * * * * * * * *
  220. // Get process status  *
  221. // * * * * * * * * * * */
  222.  
  223. #define kAEProcessStatus 'gtps'                /* Event ID. */
  224. /*
  225. // Parameters:
  226. //
  227. //        keyConnectionID
  228. //
  229. // Reply parameters:
  230. //
  231. //        keyAEResult
  232. //        keyErrorNumber (optional)
  233. //        keyErrorString (optional)
  234. */
  235.  
  236. /* * * * * * * * * * * * * *
  237. // Get process device name *
  238. // * * * * * * * * * * * * */
  239.  
  240. #define kAEGetProcessDeviceName 'gtpd'            /* Event ID. */
  241. /*
  242. // Parameters:
  243. //
  244. //        keyConnectionID
  245. //
  246. // Reply parameters:
  247. //
  248. //        keyAEResult
  249. //        keyErrorNumber (optional)
  250. //        keyErrorString (optional)
  251. */
  252.  
  253. /* * * * * * * * * * * * * *
  254. // Run a remote command      *
  255. // * * * * * * * * * * * * */
  256.  
  257. #define kAERunRemoteCommand 'rcmd'            /* Event ID. */
  258. /*
  259. // Parameters:
  260. //
  261. //        keyAEText "the command to run"
  262. //
  263. // Reply parameters:
  264. //
  265. //        keyAEText "the output from the command"
  266. //        keyErrorNumber (optional)
  267. //        keyErrorString (optional)
  268. */
  269.  
  270.  
  271.  
  272. /*-------------------------------------------------------------------------*
  273.  *
  274.  *    AppleEvents for MANDELBROT      ***      AppleEvents for MANDELBROT
  275.  *
  276.  *-------------------------------------------------------------------------*/
  277.  
  278. #define kAEMandel     'mndl'
  279.  
  280. /*-------------------------------------------------------------------------*
  281.  *
  282.  *    AppleEvents for JAVELIN      ***      AppleEvents for JAVELIN
  283.  *
  284.  *-------------------------------------------------------------------------*/
  285.  
  286. #define keyInterval 'tint'
  287.  
  288. #define kAEInterval 'jint'            /* Event ID. */
  289. /*
  290. // Parameters:
  291. //
  292. //      keyInterval 'tint'            // Integer
  293. //
  294. */
  295.  
  296. #define kAEJavMsg 'jmsg'            /* Event ID. */
  297. /*
  298. // Parameters:
  299. //      keyMessageCode    'msgc'    // typeInteger    : Error Message Number
  300. //      keyMsgString    'msgs'    // typeChar       : Message String
  301. //
  302. //
  303. */
  304.  
  305. /*-------------------------------------------------------------------------*
  306.  *
  307.  *    AppleEvents for DISCUS      ***      AppleEvents for DISCUS
  308.  *
  309.  *-------------------------------------------------------------------------*/
  310.  
  311.  
  312. /* * * * * * * * * * * * * * *
  313. // * The NULL Event          *
  314. // * * * * * * * * * * * * * */
  315.  
  316. #define kAENull 'null'            /* Event ID. */
  317. /*
  318. // Parameters:
  319. //
  320. //        None
  321. //
  322. // Reply parameters:
  323. //
  324. //        keyErrorNumber        // typeChar
  325. //        keyErrorString      // typeChar
  326. */
  327.  
  328. /* * * * * * * * * * * * * * *
  329. // * The QUIT Event          *
  330. // * * * * * * * * * * * * * */
  331.  
  332. #define kAEQuit 'quit'            /* Event ID. */
  333. /*
  334. // Parameters:
  335. //
  336. //        None
  337. //
  338. // Reply parameters:
  339. //
  340. //        None.
  341. */
  342.  
  343. #define kAEHeartBeat 'hart'        /* Event ID. */
  344. /*
  345. // Parameters:
  346. //
  347. //        None
  348. //
  349. // Reply parameters:
  350. //
  351. //        None.
  352. */
  353.  
  354. /* * * * * * * * * * * * * * *
  355. // * The Version Event       *
  356. // * * * * * * * * * * * * * */
  357.  
  358. #define kAEVersion 'dver'        /* Event ID. */
  359. /*
  360. // Parameters:
  361. //
  362. //        keyAEVersion        // typeChar
  363. //
  364. // Reply parameters:
  365. //
  366. //        keyErrorNumber        // typeChar
  367. //        keyErrorString      // typeChar
  368. */
  369.  
  370. /* * * * * * * * * * * * * * * * *
  371. // * The Discus Message Event    *
  372. // * * * * * * * * * * * * * * * */
  373.  
  374. #define kAEDiscMsg 'dmsg'        /* Event ID. */
  375. /*
  376. // Parameters:
  377. //
  378. //        keyAEMessageCode    // typeInteger
  379. //        keyAEMsgString        // typeChar
  380. //
  381. // Reply parameters:
  382. //
  383. //        keyErrorNumber        // typeChar
  384. //        keyErrorString      // typeChar
  385. */
  386.  
  387. /* * * * * * * * * * * * * * * * *
  388. // * The Easy-Setup Event    *
  389. // * * * * * * * * * * * * * * * */
  390.  
  391. #define kAEEasySetup 'easy'        /* Event ID. */
  392. /*
  393. // Parameters:
  394. //
  395. //        None.
  396. //
  397. // Reply parameters:
  398. //
  399. //        keyErrorNumber        // typeChar
  400. //        keyErrorString      // typeChar
  401. */
  402.  
  403. /* * * * * * * * * * * * * * *
  404. // * The Command Reply Event *
  405. // * * * * * * * * * * * * * */
  406.  
  407. #define kAECmdReply 'cmdr'        /* Event ID. */
  408. /*
  409. // Parameters:
  410. //
  411. //        keyErrorNumber        // typeChar
  412. //        keyErrorString      // typeChar
  413. //
  414. // Reply parameters:
  415. //
  416. //        None.
  417. */
  418.  
  419. /* * * * * * * * * * * * * * *
  420. // * The ChangePV Event      *
  421. // * * * * * * * * * * * * * */
  422.  
  423. #define kAEChangePV 'chpv'        /* Event ID. */
  424. /*
  425. // Parameters:
  426. //
  427. //        keyPVAvail        // typeBool (optional)
  428. //        keyPVAlloc        // typeBool (optional)
  429. //
  430. // Reply parameters:
  431. //
  432. //        keyErrorNumber        // typeChar
  433. //        keyErrorString      // typeChar
  434. */
  435.  
  436. /* * * * * * * * * * * * * * *
  437. // * The ChangeVG Event      *
  438. // * * * * * * * * * * * * * */
  439.  
  440. #define kAEChangeVG 'chvg'        /* Event ID. */
  441. /*
  442. // Parameters:
  443. //
  444. //        keyPVAvail        // typeBool (optional)
  445. //        keyPVAlloc        // typeBool (optional)
  446. //
  447. // Reply parameters:
  448. //
  449. //        keyErrorNumber        // typeChar
  450. //        keyErrorString      // typeChar
  451. */
  452.  
  453. /* * * * * * * * * * * * * * *
  454. // * The ChangeLV Event      *
  455. // * * * * * * * * * * * * * */
  456.  
  457. #define kAEChangeLV 'chlv'        /* Event ID. */
  458. /*
  459. // Parameters:
  460. //
  461. //  [general attributes]
  462. //
  463. //        keyName            // typeChar
  464. //        keyLVLabel        // typeChar         (optional)
  465. //        keyLVType        // typeChar         (optional)
  466. //        keyLVNumLPs        // typeShortInteger (optional)
  467. //        keyLVRelo        // typeBool         (optional)
  468. //        keyLVBBRelo        // typeBool         (optional)
  469. //        keyLVWrVerify        // typeBool         (optional)
  470. //        keyLVReadOnly        // typeBool         (optional)
  471. //
  472. //  [general attributes - increase size]
  473. //
  474. //        keyLVNumAddLPs        // typeShortInteger (optional)
  475. //        keyLVISPosition        // typeShortInteger (optional)
  476. //        keyLVISMinRange        // typeBool         (optional)
  477. //        keyLVISMaxPVs        // typeShortInteger (optional)
  478. //
  479. //  [allocation policies]
  480. //
  481. //        keyLVMirCopies        // typeShortInteger (optional)
  482. //        keyLVSequential        // typeBool         (optional)
  483. //        keyLVMirConsChk        // typeBool         (optional)
  484. //        keyLVCopiesSep        // typeBool         (optional)
  485. //        keyPVList        // typeChar         (optional)
  486. //        keyLVPosition        // typeShortInteger (optional)
  487. //        keyLVMinRange        // typeBool         (optional)
  488. //        keyLVMaxPVs        // typeShortInteger (optional)
  489. //
  490. // Reply parameters:
  491. //
  492. //        keyErrorNumber        // typeChar
  493. //        keyErrorString      // typeChar
  494. */
  495.  
  496. /* * * * * * * * * * * * * * *
  497. // * The ChangeFS Event      *
  498. // * * * * * * * * * * * * * */
  499.  
  500. #define kAEChangeFS 'chfs'        /* Event ID. */
  501. /*
  502. // Parameters:
  503. //
  504. //        keyFSMountPt        // typeChar
  505. //        keyName            // typeChar         (optional) NewMtPt
  506. //        keyFSSize        // typeInteger      (optional) NewSize
  507. //        keyFSAutoMount        // typeBool         (optional)
  508. //        keyFSDefRO        // typeBool         (optional)
  509. //        keyLVMirCopies        // typeShortInteger (optional)
  510. //        keyLVCopiesSep        // typeBool         (optional)
  511. //
  512. // Reply parameters:
  513. //
  514. //        keyErrorNumber        // typeChar
  515. //        keyErrorString      // typeChar
  516. */
  517.  
  518. /* * * * * * * * * * * * * * *
  519. // Format a Physical Volume  *
  520. // * * * * * * * * * * * * * */
  521.  
  522. #define kAEFormatPV 'fmpv'            /* Event ID. */
  523. /*
  524. // Parameters:
  525. //
  526. //        Unknown
  527. //
  528. // Reply parameters:
  529. //
  530. //        keyName        // typeChar 
  531. //
  532. // Reply parameters:
  533. //
  534. //        keyErrorNumber    // typeChar
  535. //        keyErrorString  // typeChar
  536. */
  537.  
  538. /* * * * * * * * * * * * * * *
  539. // Create a New Volume Group *
  540. // * * * * * * * * * * * * * */
  541.  
  542. #define kAENewVG 'nwvg'            /* Event ID. */
  543. /*
  544. // Parameters:
  545. //
  546. //        keyVGName    // typeChar
  547. //        keyPVList    // typeChar
  548. //        keyVGAutoActive    // typeBoolean
  549. //        keyVGActive    // typeBoolean
  550. //        keyVGPPSize    // typeShortInteger
  551. //
  552. // Reply parameters:
  553. //
  554. //        keyErrorNumber    // typeChar
  555. //        keyErrorString  // typeChar
  556. */
  557.  
  558. /* * * * * * * * * * * * * * *
  559. // Rename a Volume Group     *
  560. // * * * * * * * * * * * * * */
  561.  
  562. #define kAERenameVG 'rnvg'            /* Event ID. */
  563. /*
  564. // Parameters:
  565. //
  566. //        Unknown
  567. //
  568. // Reply parameters:
  569. //
  570. //        Unknown
  571. //        Unknown (optional)
  572. //        Unknown (optional)
  573. */
  574.  
  575. /* * * * * * * * * * * * * * *
  576. // ReOrg a Volume Group     *
  577. // * * * * * * * * * * * * * */
  578.  
  579. #define kAEReOrgVG 'rgvg'            /* Event ID. */
  580. /*
  581. // Parameters:
  582. //
  583. //        Unknown
  584. //
  585. // Reply parameters:
  586. //
  587. //        Unknown
  588. //        Unknown (optional)
  589. //        Unknown (optional)
  590. */
  591. /* * * * * * * * * * * * * * *
  592. // Remove a Volume Group     *
  593. // * * * * * * * * * * * * * */
  594.  
  595. #define kAERemoveVG 'rmvg'            /* Event ID. */
  596. /*
  597. // Parameters:
  598. //
  599. //        keyName                // typeChar
  600. //        keyPVList            // typeChar
  601. //
  602. // Reply parameters:
  603. //
  604. //        keyErrorNumber            // typeChar
  605. //        keyErrorString            // typeChar
  606. */
  607.  
  608. /* * * * * * * * * * * * * * *
  609. // Create a new File System  *
  610. // * * * * * * * * * * * * * */
  611.  
  612. #define kAENewFS 'nwfs'            /* Event ID. */
  613. /*
  614. // Parameters:
  615. //
  616. //        keyVFSType            // typeChar
  617. //        keyVGName            // typeChar
  618. //        keyFSSize            // typeInteger
  619. //        keyFSMountPt            // typeChar
  620. //        keyFSAutoMount            // typeBoolean
  621. //        keyFSDefRO            // typeBoolean
  622. //        keyFSDiskAcct            // typeBoolean
  623. //        keyFSOptions            // typeChar
  624. //        keyFSMountNow            // typeBoolean
  625. //
  626. // Reply parameters:
  627. //
  628. //        keyErrorNumber            // typeChar
  629. //        keyErrorString            // typeChar
  630. */
  631.  
  632. /* * * * * * * * * * * * * * *
  633. // Rename a File System      *
  634. // * * * * * * * * * * * * * */
  635.  
  636. #define kAERenameFS 'rnfs'            /* Event ID. */
  637. /*
  638. // Parameters:
  639. //
  640. //        Unknown
  641. //
  642. // Reply parameters:
  643. //
  644. //        Unknown
  645. //        Unknown (optional)
  646. //        Unknown (optional)
  647. */
  648.  
  649. /* * * * * * * * * * * * * * *
  650. // Remove a File System      *
  651. // * * * * * * * * * * * * * */
  652.  
  653. #define kAERemoveFS 'rmfs'            /* Event ID. */
  654. /*
  655. // Parameters:
  656. //
  657. //        keyName (the FS name)
  658. //        keyLVvgname
  659. //
  660. // Reply parameters:
  661. //
  662. //        Unknown
  663. //        Unknown (optional)
  664. //        Unknown (optional)
  665. */
  666.  
  667. /* * * * * * * * * * * * * * * * * * * * * *
  668. // Add a Physcial Volume to a Volume Group *
  669. // * * * * * * * * * * * * * * * * * * * * */
  670.  
  671. #define kAEAddPVtoVG 'pvvg'            /* Event ID. */
  672. /*
  673. // Parameters:
  674. //
  675. //        keyPVName
  676. //        keyVGName
  677. //
  678. // Reply parameters:
  679. //
  680. //        Unknown
  681. //        Unknown (optional)
  682. //        Unknown (optional)
  683. */
  684.  
  685. /* * * * * * * * * * * * * * * * * * * * * *
  686. // Add a Physcial Volume to a File System  *
  687. // * * * * * * * * * * * * * * * * * * * * */
  688.  
  689. #define kAEAddPVtoFS 'pvfs'            /* Event ID. */
  690. /*
  691. // Parameters:
  692. //
  693. //        keyPVName
  694. //        keyName (the LV name)
  695. //
  696. // Reply parameters:
  697. //
  698. //        Unknown
  699. //        Unknown (optional)
  700. //        Unknown (optional)
  701. */
  702.  
  703. /* * * * * * * * * * * * * * * * * * * * * * * * *
  704. // Remove a Physical Volume from a Volume Group  *
  705. // * * * * * * * * * * * * * * * * * * * * * * * */
  706.  
  707. #define kAERemovePVfromVG 'rmpv'        /* Event ID. */
  708. /*
  709. // Parameters:
  710. //
  711. //        keyPVName
  712. //        keyVGName
  713. //
  714. // Reply parameters:
  715. //
  716. //        Unknown
  717. //        Unknown (optional)
  718. //        Unknown (optional)
  719. */
  720.  
  721. /* * * * * * * * * * * * * * * * * * * * *
  722. // Migrate Data off of a Physical Volume *
  723. // * * * * * * * * * * * * * * * * * * * */
  724.  
  725. #define kAEMigrateData 'mipv'            /* Event ID. */
  726. /*
  727. // Parameters:
  728. //
  729. //        Unknown
  730. //
  731. // Reply parameters:
  732. //
  733. //        Unknown
  734. //        Unknown (optional)
  735. //        Unknown (optional)
  736. */
  737.  
  738. /* * * * * * * * * * * * * * * * *
  739. // Is Physical Volume Available? *
  740. // * * * * * * * * * * * * * * * */
  741.  
  742. #define kAEPVavailable 'pvav'            /* Event ID. */
  743. /*
  744. // Parameters:
  745. //
  746. //        keyPVAvail
  747. //
  748. // Reply parameters:
  749. //
  750. //        Unknown
  751. //        Unknown (optional)
  752. //        Unknown (optional)
  753. */
  754.  
  755. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  756. // Allow allocation of physical partitions on Physical Volume?   *
  757. // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  758.  
  759. #define kAEPVallocate 'pval'            /* Event ID. */
  760. /*
  761. // Parameters:
  762. //
  763. //        keyPVAlloc
  764. //
  765. // Reply parameters:
  766. //
  767. //        Unknown
  768. //        Unknown (optional)
  769. //        Unknown (optional)
  770. */
  771.  
  772. /* * * * * * * * * * * * * * * * * * * *
  773. // Mount a File System                 *
  774. // * * * * * * * * * * * * * * * * * * */
  775.  
  776. #define kAEMountFS ' mnt'            /* Event ID. */
  777. /*
  778. // Parameters:
  779. //
  780. //        keyFSMountPt    /* Required: typeChar
  781. //              keyFSDevice    /* Optional: typeChar
  782. //              keyFSOptions    /* Optional: typeChar
  783. //
  784. // Reply parameters:
  785. //
  786. //        keyErrorNumber
  787. //        keyErrorString
  788. */
  789.  
  790. /* * * * * * * * * * * * * * * * * * * *
  791. // Unmount a File System               *
  792. // * * * * * * * * * * * * * * * * * * */
  793.  
  794. #define kAEUnmountFS 'umnt'            /* Event ID. */
  795. /*
  796. // Parameters:
  797. //
  798. //        keyFSMountPt    /* Required: typeChar
  799. //
  800. // Reply parameters:
  801. //
  802. //        keyErrorNumber
  803. //        keyErrorString
  804. */
  805.  
  806. /* * * * * * * * * * * * * * * * * * * *
  807. // Set mount point for a File System   *
  808. // * * * * * * * * * * * * * * * * * * */
  809.  
  810. #define kAESetMountPoint 'fsmt'            /* Event ID. */
  811. /*
  812. // Parameters:
  813. //
  814. //        Unknown
  815. //
  816. // Reply parameters:
  817. //
  818. //        Unknown
  819. //        Unknown (optional)
  820. //        Unknown (optional)
  821. */
  822.  
  823. /* * * * * *  * * * * * * * * * *
  824. // Set Logname for File System  *
  825. // * * * * *  * * * * * * * * * */
  826.  
  827. #define kAESetLogname 'fslg'            /* Event ID. */
  828. /*
  829. // Parameters:
  830. //
  831. //        Unknown
  832. //
  833. // Reply parameters:
  834. //
  835. //        Unknown
  836. //        Unknown (optional)
  837. //        Unknown (optional)
  838. */
  839.  
  840. /* * * * * * * * * * * * * * * * * * * * * *
  841. // Set AutomountAtStartup for File System  *
  842. // * * * * * * * * * * * * * * * * * * * * */
  843.  
  844. #define kAEAutoMount 'fsam'            /* Event ID. */
  845. /*
  846. // Parameters:
  847. //
  848. //        Unknown
  849. //
  850. // Reply parameters:
  851. //
  852. //        Unknown
  853. //        Unknown (optional)
  854. //        Unknown (optional)
  855. */
  856.  
  857. /* * * * * * * * * * * * * * * *
  858. // Set FileSystem to ReadOnly  *
  859. // * * * * * * * * * * * * * * */
  860.  
  861. #define kAEReadOnlyFS 'fsro'            /* Event ID. */
  862. /*
  863. // Parameters:
  864. //
  865. //        keyFSxxx
  866. //
  867. // Reply parameters:
  868. //
  869. //        Unknown
  870. //        Unknown (optional)
  871. //        Unknown (optional)
  872. */
  873.  
  874. /* * * * * * * * * * * * * * * *
  875. // Set name of Logical Volume  *
  876. // * * * * * * * * * * * * * * */
  877.  
  878. #define kAERemoveLV 'rmlv'            /* Event ID. */
  879. /*
  880. // Parameters:
  881. //
  882. //        keyName (the LV name)        // typeChar
  883. //        keyLVvgname (the LV name)        // typeChar
  884. //
  885. // Reply parameters:
  886. //
  887. //        Unknown
  888. //        Unknown (optional)
  889. //        Unknown (optional)
  890. */
  891.  
  892. /* * * * * * * * * * * * * * * *
  893. // Set name of Logical Volume  *
  894. // * * * * * * * * * * * * * * */
  895.  
  896. #define kAENameLV 'lvnm'            /* Event ID. */
  897. /*
  898. // Parameters:
  899. //
  900. //        Unknown
  901. //
  902. // Reply parameters:
  903. //
  904. //        Unknown
  905. //        Unknown (optional)
  906. //        Unknown (optional)
  907. */
  908.  
  909. /* * * * * * * * * * * * * * * * *
  910. // Set label for Logical Volume  *
  911. // * * * * * * * * * * * * * * * */
  912.  
  913. #define kAELabelLV 'lvlb'            /* Event ID. */
  914. /*
  915. // Parameters:
  916. //
  917. //        Unknown
  918. //
  919. // Reply parameters:
  920. //
  921. //        Unknown
  922. //        Unknown (optional)
  923. //        Unknown (optional)
  924. */
  925.  
  926. /* * * * * * * * * * * * * * * * *
  927. // Set type for Logical Volume   *
  928. // * * * * * * * * * * * * * * * */
  929.  
  930. #define kAETypeLV 'lvtp'            /* Event ID. */
  931. /*
  932. // Parameters:
  933. //
  934. //        Unknown
  935. //
  936. // Reply parameters:
  937. //
  938. //        Unknown
  939. //        Unknown (optional)
  940. //        Unknown (optional)
  941. */
  942.  
  943. /* * * * * * * * * * * *
  944. // Relocate Bad Blocks *
  945. // * * * * * * * * * * */
  946.  
  947. #define kAEReloBadBlks 'rebb'            /* Event ID. */
  948. /*
  949. // Parameters:
  950. //
  951. //        Unknown
  952. //
  953. // Reply parameters:
  954. //
  955. //        Unknown
  956. //        Unknown (optional)
  957. //        Unknown (optional)
  958. */
  959.  
  960. /* * * * * * * * * * * * * * * * * * * * * *
  961. // Allow Relocation during Reorganization  *
  962. // * * * * * * * * * * * * * * * * * * * * */
  963.  
  964. #define kAEReloReorg 'rere'            /* Event ID. */
  965. /*
  966. // Parameters:
  967. //
  968. //        Unknown
  969. //
  970. // Reply parameters:
  971. //
  972. //        Unknown
  973. //        Unknown (optional)
  974. //        Unknown (optional)
  975. */
  976.  
  977. /* * * * * * * * * * * *
  978. // Read Verify Writes  *
  979. // * * * * * * * * * * */
  980.  
  981. #define kAEReadVerifyWrites 'rvwr'            /* Event ID. */
  982. /*
  983. // Parameters:
  984. //
  985. //        Unknown
  986. //
  987. // Reply parameters:
  988. //
  989. //        Unknown
  990. //        Unknown (optional)
  991. //        Unknown (optional)
  992. */
  993.  
  994. /* * * * * * * * * * * * * * *
  995. // Mirror Write Consistancy  *
  996. // * * * * * * * * * * * * * */
  997.  
  998. #define kAEMirrorWrite 'mwrc'            /* Event ID. */
  999. /*
  1000. // Parameters:
  1001. //
  1002. //        Unknown
  1003. //
  1004. // Reply parameters:
  1005. //
  1006. //        Unknown
  1007. //        Unknown (optional)
  1008. //        Unknown (optional)
  1009. */
  1010.  
  1011. /* * * * * * * * * * * * * * *
  1012. // Set max pvs for newalloc  *
  1013. // * * * * * * * * * * * * * */
  1014.  
  1015. #define kAEMaxPVS 'mxna'            /* Event ID. */
  1016. /*
  1017. // Parameters:
  1018. //
  1019. //        Unknown
  1020. //
  1021. // Reply parameters:
  1022. //
  1023. //        Unknown
  1024. //        Unknown (optional)
  1025. //        Unknown (optional)
  1026. */
  1027.  
  1028. /* * * * * * * * * * * * * * * * * * * * * * * * * *
  1029. // Set maximum for allocation to a Logical Volume  *
  1030. // * * * * * * * * * * * * * * * * * * * * * * * * */
  1031.  
  1032. #define kAEMaxAllocToLV 'mxal'            /* Event ID. */
  1033. /*
  1034. // Parameters:
  1035. //
  1036. //        Unknown
  1037. //
  1038. // Reply parameters:
  1039. //
  1040. //        Unknown
  1041. //        Unknown (optional)
  1042. //        Unknown (optional)
  1043. */
  1044.  
  1045. /* * * * * * * * * * * * * * * *
  1046. // Set Logical Partition size  *
  1047. // * * * * * * * * * * * * * * */
  1048.  
  1049. #define kAESetLPsize 'lpsz'            /* Event ID. */
  1050. /*
  1051. // Parameters:
  1052. //
  1053. //        Unknown
  1054. //
  1055. // Reply parameters:
  1056. //
  1057. //        Unknown
  1058. //        Unknown (optional)
  1059. //        Unknown (optional)
  1060. */
  1061.  
  1062. /* * * * * * * * * * * * * * * *
  1063. // Set number of Mirror Copies *
  1064. // * * * * * * * * * * * * * * */
  1065.  
  1066. #define kAEMirrorCopies 'micp'            /* Event ID. */
  1067. /*
  1068. // Parameters:
  1069. //
  1070. //        Unknown
  1071. //
  1072. // Reply parameters:
  1073. //
  1074. //        Unknown
  1075. //        Unknown (optional)
  1076. //        Unknown (optional)
  1077. */
  1078.  
  1079. /* * * * * * * * * * * * * * * * *
  1080. // Logical Partition Allocation  *
  1081. // * * * * * * * * * * * * * * * */
  1082.  
  1083. #define kAELogicalPartAlloc 'lpal'            /* Event ID. */
  1084. /*
  1085. // Parameters:
  1086. //
  1087. //        Unknown
  1088. //
  1089. // Reply parameters:
  1090. //
  1091. //        Unknown
  1092. //        Unknown (optional)
  1093. //        Unknown (optional)
  1094. */
  1095.  
  1096. /* * * * * * * * * * * * * * * * * *
  1097. // Set Logical Volume to ReadOnly  *
  1098. // * * * * * * * * * * * * * * * * */
  1099.  
  1100. #define kAEReadOnlyLV 'lvro'            /* Event ID. */
  1101. /*
  1102. // Parameters:
  1103. //
  1104. //        Unknown
  1105. //
  1106. // Reply parameters:
  1107. //
  1108. //        Unknown
  1109. //        Unknown (optional)
  1110. //        Unknown (optional)
  1111. */
  1112.  
  1113. /* * * * * * * * * * * * * * * *
  1114. // Set AutoActivate on Startup *
  1115. // * * * * * * * * * * * * * * */
  1116.  
  1117. #define kAEAutoActivate 'aast'            /* Event ID. */
  1118. /*
  1119. // Parameters:
  1120. //
  1121. //        keyVGName           Name of VG to act upon
  1122. //        keyVGAutoActivate         If TRUE set AutoActivate ON
  1123. //                            If FALSE set AutoActivate OFF
  1124. //
  1125. // Reply parameters:
  1126. //
  1127. //        keyAEText    "S"  -or-
  1128. //                "Ffailmessage"
  1129. */
  1130.  
  1131. /* * * * * * * * * * * * * * *
  1132. // Activate Volume Group Now *
  1133. // * * * * * * * * * * * * * */
  1134.  
  1135. #define kAEActivateVG 'anow'            /* Event ID. */
  1136. /*
  1137. // Parameters:
  1138. //
  1139. //        keyVGName    Name of VG to activate
  1140. //
  1141. // Reply parameters:
  1142. //
  1143. //        keyAEText    "S"  -or-
  1144. //                "Ffailmessage"
  1145. */
  1146.  
  1147. /* * * * * * * * * * * * * * * *
  1148. // Deactivate Volume Group Now *
  1149. // * * * * * * * * * * * * * * */
  1150.  
  1151. #define kAEDeactivateVG 'dnow'            /* Event ID. */
  1152. /*
  1153. // Parameters:
  1154. //
  1155. //        keyVGName    Name of VG to deactivate
  1156. //
  1157. // Reply parameters:
  1158. //
  1159. //        keyAEText    "S"  -or-
  1160. //                "Ffailmessage"
  1161. */
  1162.  
  1163. /* * * * * * * * * * * * * * * * * * * *
  1164. // Send Config Data                    *
  1165. // * * * * * * * * * * * * * * * * * * */
  1166. #define kAEConfigData 'cnfg'            /* Event ID. */
  1167. /*
  1168. // Parameters:
  1169. //
  1170. //        ???            ???
  1171. //
  1172. // Reply parameters:
  1173. //
  1174. //        ???          ???
  1175. */
  1176.  
  1177.  
  1178.  
  1179. /*** Parameter Keys for Discus ***/
  1180.  
  1181. #define keyAEVersion    'verx'    /* typeChar       : Software Version         */
  1182. #define keySessionID    'ssID'    /* typeInteger    : Session/Document ID      */
  1183.  
  1184. /** Parameters used by kAEDiscMsg **/
  1185. #define keyMessageCode    'msgc'    /* typeInteger    : Discus Message Number    */
  1186. #define keyMsgString    'msgs'    /* typeChar       : Optional Message String  */
  1187.  
  1188.  
  1189. /** VFS Parameters **/
  1190. #define    keyVFSType    'vfst'    /* typeChar        */
  1191.  
  1192. /** File System Parameters - Object attributes **/
  1193. #define keyFSList    'fsls'  /* typeChar        : <sp> delim'd list of FSs */
  1194. #define    keyDirty    'dirt'  /* typeShortInteger: New, Update, Delete      */
  1195. #define    keyFSMountPt    'fsmp'  /* typeChar        : path to mount point      */
  1196. #define    keyFSDevice    'fsdv'  /* typeChar        : path to device file      */
  1197. #define    keyFSType    'fstp'  /* typeChar        : ???                      */
  1198. #define    keyFSOptions    'fsop'  /* typeChar        : Filesytem options        */
  1199. #define    keyFSAutoMount    'fsam'  /* typeBoolean     : Automount at sys restart */
  1200. #define    keyFSDiskAcct    'fsda'  /* typeBoolean     : Disk accounting          */
  1201. #define    keyFSSize    'fssz'  /* typeInteger     : Size of file system  (Mb)*/
  1202. #define keyFSFree       'fsfr'  /* typeInteger     : Amount of free space (Mb)*/
  1203. #define keyFSMounted    'fsmt'  /* typeBoolean     : Currently mounted        */
  1204. #define    keyFSDefLogname    'fsdl'  /* typeChar        : Default name of logdevice*/
  1205. #define    keyFSCurLogname    'fscl'  /* typeChar        : Current name of logdevice*/
  1206. #define keyFSDefRO      'fsdr'  /* typeBoolean     : Currently Read-Only      */
  1207. #define keyFSCurRO      'fscr'  /* typeBoolean     : Read-Only is default     */
  1208. #define keyFSGroup      'fsgr'  /* typeChar        : Mount group we belong to */
  1209. #define keyFSBytesInode 'byte'  /* typeInteger     : Number of BytesPerInode  */
  1210. #define keyFSFragsBlock 'frag'  /* typeInteger     : Number of FragsPerBlock  */
  1211. #define keyFSCompress   'comp'  /* typeBoolean     : Compression (TRUE=on)    */
  1212.  
  1213.  
  1214.  
  1215. /** Logical Volume Parameters - Object attributes **/
  1216. #define keyLVList    'lvls'  /* typeChar        : <sp> delim'd list of LVs */
  1217. /*    keyDirty    'dirt'  /* typeShortInteger: New, Update, Delete      */
  1218. #define    keyName        'name'  /* typeChar        : LV Name                  */
  1219. #define    keyLVvgname    'lvvg'  /* typeChar        : Name of VG we belong to  */
  1220. #define    keyLVLabel    'lvlb'  /* typeChar        : LV Label                 */
  1221. #define    keyLVType    'lvtp'  /* typeChar        : LV Type (jfs,paging,etc.)*/
  1222. #define    keyLVIdentifier    'lvid'  /* typeChar        : LV Identifier            */
  1223. #define    keyLVState    'lvst'  /* typeChar        : LV State                 */
  1224. #define    keyLVMountPt    'lvmp'  /* typeChar        : LV Mount Point           */
  1225. #define    keyLVSize    'lvsz'  /* typeInteger     : LV Size (Mb)             */
  1226. #define    keyLVPPSize    'lvpp'  /* typeShortInteger: PP Size (Mb)             */
  1227. #define    keyLVNumLPs    'lvnl'  /* typeShortInteger: Number of Logical Part.s */
  1228. #define    keyLVNumPPs    'lvnp'  /* typeShortInteger: Number of Physical Part.s*/
  1229. #define    keyLVStalePPs    'lvsp'  /* typeShortInteger: Number of Stale PPS      */
  1230. #define    keyLVMaxLPs    'lvml'  /* typeInteger     : Maximum Number of LPS    */
  1231. #define    keyLVRelo    'lvre'  /* typeBoolean     : LV is relocatable        */
  1232. #define    keyLVBBRelo    'lvbb'  /* typeBoolean     : LV BadBlks relocatable   */
  1233. #define    keyLVWrVerify    'lvwv'  /* typeBoolean     : Write Verify             */
  1234. #define    keyLVReadOnly    'lvro'  /* typeBoolean     : LV is Read-Only          */
  1235. #define    keyLVMirCopies    'lvmc'  /* typeShortInteger: Number of Mirror Copies  */
  1236. #define    keyLVSequential    'lvsq'  /* typeBoolean     : Writes are sequential    */
  1237. #define    keyLVMirConsChk    'lvmc'  /* typeBoolean     : Mirror Write Consist Chk */
  1238. #define    keyLVCopiesSep    'lvcs'  /* typeBoolean     : Copies on seperte volumes*/
  1239. #define    keyLVPosition    'lvpo'  /* typeShort       : Position on Phys Vol.    */
  1240. #define    keyLVMinRange    'lvra'  /* typeBoolean     : Min Range of Phys Vols. */
  1241. #define    keyLVMaxPVs    'lvmx'  /* typeShort       : Max Num of Phys Vols.    */
  1242.  
  1243. /** More Logical Volume Parameters - Object attributes **/
  1244. /** NOTE: These attributes are used when increasing the size of an LP **/
  1245. #define    keyLVAddNumLPs    'lval'  /* typeShortInteger: Number of Additional LPs */
  1246. #define    keyLVISPosition    'lvip'  /* typeShort       : Position on Phys Vol.    */
  1247. #define    keyLVISMinRange    'lvim'  /* typeBoolean     : Min Range of Phys Vols. */
  1248. #define    keyLVISMaxPVs    'lvix'  /* typeShort       : Max Num of Phys Vols.    */
  1249. #define keyLVISPVList    'pvl2'  /* typeChar        : <sp> dilim'd list of PVs */
  1250.  
  1251. /** Physical Volume Parameters - Object attributes **/
  1252. #define keyPVList    'pvls'  /* typeChar        : <sp> dilim'd list of PVs */
  1253. /*    keyDirty    'dirt'  /* typeShortInteger: New, Update, Delete      */
  1254. /*      keyName        'name'  /* typeChar        : PV Name                  */
  1255. #define keyPVIdentifier    'pvid'  /* typeChar        : PV Identifier            */
  1256. #define keyPVvgname    'pvvg'  /* typeChar        : Name of VG we belong to  */
  1257. #define keyPVSize    'pvsz'  /* typeInteger     : PV Size (Mb)             */
  1258. #define keyPVFree    'pvfr'  /* typeInteger     : Amount of free space (Mb)*/
  1259. #define keyPVUsed    'pvus'  /* typeInteger     : Amount of used space (Mb)*/
  1260. #define keyPVPPSize    'pvpz'  /* typeShortInteger: Size of Phys Partitions  */
  1261. #define keyPVBusID    'pvbi'  /* typeShortInteger: ID of SCSI Bus           */
  1262. #define keyPVScsiID    'pvsi'  /* typeShortInteger: SCSI ID of Disk          */
  1263. #define keyPVLUN    'pvlu'  /* typeShortInteger: LogicalUnitNumber of Disk*/
  1264. #define keyPVRaid    'pvra'  /* typeBoolean     : Is a RAID Disk Array     */
  1265. #define keyPVAvail    'pvav'  /* typeBoolean     : Is Available             */
  1266. #define keyPVAlloc    'pval'  /* typeBoolean     : Is Alocatable            */
  1267.  
  1268.  
  1269. /** Volume Group Parameters - Object attributes **/
  1270. #define keyVGList    'vgls'  /* typeChar        : <sp> dilim'd list of VGs */
  1271. /*    keyDirty    'dirt'  /* typeShortInteger: New, Update, Delete      */
  1272. /*    keyName        'name'  /* typeChar        : VG Name                  */
  1273. #define    keyVGActive    'vgac'  /* typeBoolean     : Is Active                */
  1274. #define    keyVGReadOnly    'vgro'  /* typeBoolean     : Is Read-Only             */
  1275. #define    keyVGMaxLVs    'vgml'  /* typeShortInteger: Maximum Number of LVs    */
  1276. #define    keyVGNumLVs    'vgnl'  /* typeShortInteger: Number of LVs            */
  1277. #define    keyVGNumOpenLVs    'vgol'  /* typeShortInteger: Number of open LVs       */
  1278. #define    keyVGNumPVs    'vgnp'  /* typeShortInteger: Number of PVs            */
  1279. #define    keyVGStalePVs    'vgsp'  /* typeShortInteger: Number of Stale PVs      */
  1280. #define    keyVGActivePVs    'vgap'  /* typeShortInteger: Number of Active PVs     */
  1281. #define    keyVGIdentifier    'vgid'  /* typeChar        : VG Identifier            */
  1282. #define    keyVGPPSize    'vgpz'  /* typeShortInteger: Size of Phys Partitions  */
  1283. #define    keyVGSize    'vgsz'  /* typeInteger     : VG Size (Mb)             */
  1284. #define    keyVGFree    'vgfr'  /* typeInteger     : Amount of free space (Mb)*/
  1285. #define    keyVGUsed    'vgus'  /* typeInteger     : Amount of used space (Mb)*/
  1286. #define    keyVGQuorum    'vgqu'  /* typeShortInteger: Number for quorum        */
  1287. #define    keyVGDescript    'vgde'  /* typeShortInteger: Number of VG descriptors */
  1288. #define    keyVGStalePPs    'vgsp'  /* typeShortInteger: Number of Stale PPs      */
  1289. #define    keyVGAutoActive    'vgaa'  /* typeBoolean     : AutoActivate             */
  1290.  
  1291.  
  1292.  
  1293.  
  1294. /* Used by HandleSetMntPoint */
  1295. #define    keyFSNewMntPt    'fsnm'  /* typeChar        */
  1296.  
  1297. /* Used by HandleNewFS() */
  1298. #define    keyFSMountNow    'mnow'  /* typeBoolean     */
  1299.  
  1300. /* Used by HandleRemoveFS() */
  1301. #define    keyFSRemoveMtPt    'fsrm'  /* typeBoolean     */
  1302.  
  1303. /* Used by HandleAddPVtoVG() */
  1304. #define keyPVName    'pvnm'  /* typeChar        */
  1305.  
  1306. /* Used by HandleRemovePVfromVG() */
  1307. #define keyForceDealloc    'forc'  /* typeBoolean     : Flag to force dealloc    */
  1308.  
  1309. #endif  /* __AUXAESuite__ */
  1310.  
  1311.  
  1312.